import { LayoutIndex } from "@/routers/constant";
import { RouteObject } from "@/routers/interface";
import lazyLoad from "@/routers/utils/lazyLoad";
import React from "react";

// 文章管理模块
const postManageRouter: Array<RouteObject> = [
	{
		element: <LayoutIndex />,
		children: [
			{
				path: "/postManage",
				element: lazyLoad(React.lazy(() => import("@/views/postManage/index"))),
				meta: {
					requiresAuth: true,
					title: "文章管理",
					key: "postManage"
				}
			}
		]
	}
];

export default postManageRouter;
